import requests
import json

i = requests.Session()

url = 'http://127.0.0.1:5000/api/add_to_album'
data = {'album_id':1,
        'pics_id':[15,16,17,18]}
i.headers.update({'Content-type': 'application/json'})

put = i.post(url,json.dumps(data))